/* 
 * Template: Glacier Screen (冰川银幕)
 * Prefix: gs-
 * Style: Cold minimalist, frosted glass, rounded cards
 */
:root {
    --gs-primary: #4FC3F7;
    --gs-white: #ffffff;
    --gs-bg: #f0f4f8;
    --gs-text: #1a2332;
    --gs-text-light: #5c6b82;
    --gs-radius: 12px;
    --gs-glass-bg: rgba(255, 255, 255, 0.7);
    --gs-glass-border: rgba(255, 255, 255, 0.5);
    --gs-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--gs-bg);
    color: var(--gs-text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gs-primary);
}

ul {
    list-style: none;
}

.gs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.gs-header {
    background: var(--gs-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gs-glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--gs-shadow);
}

.gs-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.gs-nav-left, .gs-nav-right {
    display: flex;
    gap: 20px;
    flex: 1;
}

.gs-nav-right {
    justify-content: flex-end;
}

.gs-logo {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 30px;
}

.gs-logo img {
    max-height: 50px;
    width: auto;
}

.gs-nav-item {
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: var(--gs-radius);
}

.gs-nav-item:hover {
    background: rgba(79, 195, 247, 0.1);
}

.gs-search-box {
    display: flex;
    align-items: center;
    background: var(--gs-white);
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid #e2e8f0;
}

.gs-search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px;
    width: 150px;
}

.gs-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gs-primary);
}

/* Footer */
.gs-footer {
    background: var(--gs-white);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #e2e8f0;
}

.gs-footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.gs-footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gs-primary);
}

.gs-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gs-footer-links a {
    color: var(--gs-text-light);
    font-size: 14px;
}

.gs-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: var(--gs-text-light);
    font-size: 14px;
}

/* Cards */
.gs-card {
    background: var(--gs-white);
    border-radius: var(--gs-radius);
    box-shadow: var(--gs-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gs-card:hover {
    transform: translateY(-5px);
}

/* Index Layout */
.gs-index-top {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.gs-hero-main {
    flex: 2;
    position: relative;
    border-radius: var(--gs-radius);
    overflow: hidden;
    height: 400px;
}

.gs-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gs-hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--gs-white);
}

.gs-hero-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.gs-hero-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gs-side-item {
    display: flex;
    gap: 15px;
    height: calc(50% - 10px);
}

.gs-side-img {
    width: 120px;
    height: 100%;
    border-radius: var(--gs-radius);
    object-fit: cover;
}

.gs-side-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gs-index-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.gs-section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--gs-primary);
}

.gs-grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gs-grid-item {
    display: flex;
    flex-direction: column;
}

.gs-grid-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--gs-radius);
    margin-bottom: 10px;
}

/* List Layout */
.gs-list-container {
    margin: 30px 0;
}

.gs-list-item {
    display: flex;
    gap: 20px;
    background: var(--gs-white);
    padding: 20px;
    border-radius: var(--gs-radius);
    margin-bottom: 20px;
    box-shadow: var(--gs-shadow);
}

.gs-list-img {
    width: 25%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gs-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gs-list-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.gs-list-desc {
    color: var(--gs-text-light);
    margin-bottom: 20px;
    flex: 1;
}

.gs-list-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #888;
}

/* Pagination */
.gs-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.gs-page-item {
    padding: 8px 15px;
    background: var(--gs-white);
    border-radius: var(--gs-radius);
    color: var(--gs-text);
}

.gs-page-item:hover, .gs-page-item.active {
    background: var(--gs-primary);
    color: var(--gs-white);
}

/* Show Layout */
.gs-show-layout {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.gs-show-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.gs-cat-nav {
    background: var(--gs-white);
    border-radius: var(--gs-radius);
    padding: 20px;
    box-shadow: var(--gs-shadow);
}

.gs-cat-item {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f4f8;
    color: var(--gs-text);
}

.gs-cat-item:last-child {
    border-bottom: none;
}

.gs-cat-item:hover {
    color: var(--gs-primary);
    background: #f8fafc;
    border-radius: 6px;
}

.gs-show-main {
    flex: 1;
    background: var(--gs-white);
    border-radius: var(--gs-radius);
    padding: 40px;
    box-shadow: var(--gs-shadow);
}

.gs-article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f4f8;
}

.gs-article-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.gs-article-meta {
    color: var(--gs-text-light);
    font-size: 14px;
}

.gs-article-content {
    font-size: 16px;
    line-height: 1.8;
}

.gs-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.gs-article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f4f8;
}

/* Right Sidebar (for other pages if needed) */
.gs-sidebar-widget {
    background: var(--gs-white);
    border-radius: var(--gs-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--gs-shadow);
}

.gs-widget-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.gs-widget-list li:last-child {
    border-bottom: none;
}

.gs-breadcrumb {
    padding: 15px 0;
    color: var(--gs-text-light);
    font-size: 14px;
}


/* ========== 差异化特效 ========== */
/**
 * 冰川银幕 (gs-) 模板特效 - CSS
 * 风格: 冰蓝白色清冷系
 */

/* 冰霜闪烁动画: 用于背景或覆盖层，模拟冰面反光 */
@keyframes gs-frost-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 雪花飘落动画: 用于单个雪花元素 */
@keyframes gs-snowfall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(10vw) rotate(360deg);
    opacity: 0;
  }
}

/* 冰块呼吸光晕动画: 用于标题或重要元素 */
@keyframes gs-ice-glow {
  0%, 100% {
    text-shadow: 0 0 10px #aedffc, 0 0 20px #aedffc, 0 0 30px #fff;
  }
  50% {
    text-shadow: 0 0 15px #d4f1ff, 0 0 25px #d4f1ff, 0 0 35px #fff;
  }
}

/* 应用冰块呼吸光晕到页面主标题 */
.gs-main-title {
  animation: gs-ice-glow 4s ease-in-out infinite;
  color: #e0f7ff;
}

/* 卡片基础样式 */
.gs-card {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.5s ease, transform 0.3s ease;
}

/* 卡片hover: 冰冻边框效果 */
.gs-card:hover {
  border-color: rgba(174, 223, 252, 0.7);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 卡片图片hover: 轻微放大和冰霜覆盖 */
.gs-card img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gs-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 冰裂纹覆盖层 (初始隐藏) */
.gs-ice-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="M0 50 L50 0 L100 50 L50 100 Z M50 0 L25 50 L50 100 L75 50 Z" stroke="rgba(255,255,255,0.3)" fill="none"/></svg>');
  background-size: 30px 30px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none; /* 允许鼠标事件穿透 */
}

/* 导航链接hover效果 */
.gs-nav-link {
  position: relative;
  color: #aedffc; /* 深冰蓝色 */
  text-decoration: none;
  transition: color 0.4s ease;
}

.gs-nav-link:hover {
  color: #e0f7ff; /* 亮冰蓝色 */
}

/* 导航链接下划线动画 */
.gs-nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -5px;
  left: 0;
  background-color: #e0f7ff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.4s ease-out;
}

.gs-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* 按钮hover: 冰晶扩散效果 */
.gs-button {
  position: relative;
  background-color: #3a8aab;
  color: white;
  border: 1px solid #aedffc;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow: hidden;
}

.gs-button:hover {
  background-color: #4fb8df;
}

.gs-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.gs-button:hover::before {
  width: 200%;
  padding-bottom: 200%; /* 保持圆形 */
}

/* 滚动时导航栏毛玻璃效果 (JS将添加/移除此类) */
.gs-frosted-nav {
  background-color: rgba(10, 25, 41, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}
